Repository navigation
Print preview: right click picks a gap and puts bends on lines - #4
Merged
Merged
Conversation
A gap between two cards is now picked with a right click instead of a left click. A right click on a line puts a bend on it there, so the line can be led differently on either side; the bends of lines led by hand are marked with dots, and a right click on one takes it off again (a corner goes with its step; a line left with no bend is led by the layout again). Bends in the middle of a straight run are kept when a line is drawn.
…ps-bends # Conflicts: # src/app/features/print-studio/print-preview/print-preview.spec.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
addBend), and the line becomes led by hand. Dragging either side of the bend then leads that part on its own, joined to the rest by a step.removeBend). A bend in a straight run simply goes. A corner goes together with its step, with the stretch beyond it put in line. If a line is left with only an unfixable corner, the layout leads it again.bent()now keeps points in the middle of a straight run (the bends), and only drops doubled points. A dragged line is tidied (tidied) so the helper points a drag adds don't stay behind as bends.Why
Pavel asked for gap picking to use the right click, and for right-click bends on lines.
How to test
npx ng test --watch=false: 429 tests pass, with new tests foraddBend,removeBend,bentwith bends, andtidied.ng lintandng buildpass.Generated by Claude Code